package com.hspedu.homework.homework13;

public class Student extends Person{
    private String stu_id;

    @Override
    public void printInfo() {
        System.out.println("学生信息:");
        super.printInfo();
        System.out.println("学号:" + stu_id);

    }

    @Override
    public void play() {
        super.play();
        System.out.println("爱玩足球");
    }

    public void study(){
        System.out.println("我承诺，我会好好学习");
    }

    public Student(String name, String sex, int age, String stu_id) {
        super(name, sex, age);
        this.stu_id = stu_id;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }
}
